/*
 * client_server_lib.h
 * this is the header file with all the prototypes and structs for
 * echoClient/Server and stackClient/Server
 */

#ifndef CLIENT_SERVER_LIB_H_
#define CLIENT_SERVER_LIB_H_


#endif /* CLIENT_SERVER_LIB_H_ */

#ifndef MAX_MSG_SIZE
#define MAX_MSG_SIZE 256
#endif

struct echo_thread_args{
	int fd;
	char *ExitFlag;
};

int sendall(int s, char *buf, int *len);

void *echo_serve_client(void *args);



int pushCommand(char *buffer);

void extractPushStr(char *dqBuf, char *destBuf);

struct thread_args{
	int fd;
	dequeue *dq;
	char *ExitFlag;
};

void *serve_client(void *args);

